<?php
//错误弹框提示
error_json("用户名不正确");
//单条数据查询
$this->db->get_one("select * from " . table('admin') . " where username = '{$username}' and password = '{$mdpasswd}' limit 1");
//多条数据查询
$this->db->get_all("select * from " . table('admin_nav') . " where pid = 0 and status = 1 order by px asc");
//执行sql语句
$this->db->query("select * from " . table("admin_nav") . " where pid = 0 and status = 1 order by px asc");
//删除
$this->db->delete(table('keyword'), 'id in(' . $id_in . ');');
//修改
$this->db->update(table('keyword'), array('px' => $px), 'id = ' . $id);
//新增
$this->db->add(table('keyword'), $setarr);
//页面提示
showmsg('设置成功');
//获取传值
P('px', '', '0');

//数组转JSON
json_encode();
//JSON转数组
json_decode($json,true);
//JSON转对象
json_decode($json);
//跳转
header("Location:index.php?m=seller");


unserialize();
serialize();

//study